/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once


#include <UI/UI.h>
#include <assert.h>


struct S_菜单管理 {
	C_Widget* m_3D视口创建弹出菜单;
};


void f_菜单管理_创建();
void f_菜单管理_销毁();



S_菜单管理& f_菜单管理_get();



bool on_配置菜单项(C_Widget* self, const std::u16string name, uint16 id);

bool on_文件菜单项(C_Widget* self, const std::u16string name, uint16 id);



C_Widget* f_界面构建_主菜单创建(S_UI渲染环境& ctx);



